package com.sojson.util.security.shiro.interceptor;

import org.apache.shiro.aop.AnnotationResolver;
import org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor;

import com.sojson.util.security.shiro.interceptor.impl.RequiredPermissionAnnotationHandler;

public class RequiredPermissionAnnotationMethodInterceptor extends AuthorizingAnnotationMethodInterceptor {

    public RequiredPermissionAnnotationMethodInterceptor() {
        super(new RequiredPermissionAnnotationHandler());
        System.out
            .println("拦截器:RequiredPermissionAnnotationMethodInterceptor:RequiredPermissionAnnotationMethodInterceptor");
    }

    /**
     * 主要方法
     * 
     * @param resolver
     */
    public RequiredPermissionAnnotationMethodInterceptor(AnnotationResolver resolver) {
        super(new RequiredPermissionAnnotationHandler(), resolver);
        System.out
            .println("拦截器:RequiredPermissionAnnotationMethodInterceptor:RequiredPermissionAnnotationMethodInterceptor");
    }

}
